<?php
echo "<pre>";
mysql_connect('localhost','root','') or die(mysql_error());
mysql_select_db('b18');

$selectQuery = "SELECT * FROM `practice`";
$selectResult = mysql_query($selectQuery)or die(mysql_error());

while($ans = mysql_fetch_object($selectResult)) {
  print_r($ans);
  echo "My Name is ".$ans->name;
  echo "<br>";
}
